<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProposalReport extends Model
{
    protected $fillable = [
        'selection_id',
        'content',
        'status',
        'submitted_at',
        'approved_at',
    ];

    protected $casts = [
        'submitted_at' => 'datetime',
        'approved_at' => 'datetime',
    ];

    public function topicSelection()
    {
        return $this->belongsTo(TopicSelection::class, 'selection_id');
    }

    public function proposalDefense()
    {
        return $this->hasOne(ProposalDefense::class);
    }
} 